/** 
 * All Rights Reserved , Copyright (C) 2020 , 青岛鼎信通讯股份有限公司
 * 
 * PmArchivesCustomerActionAuto
 * 客户档案
 * 
 * 修改纪录
 * 2020-04-16 版本：1.0 wushenghong 创建。
 * @version 版本：1.0
 * @author 作者：wushenghong
 * 创建日期：2020-04-16
 */

package com.topscomm.pm.controller.auto;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topscomm.pm.PmController;
import com.topscomm.pm.pojo.PmArchivesCustomerEntity;
import com.topscomm.pm.service.IPmArchivesCustomerService;
import com.topscomm.pub.vo.ResponseResult;

/**
 * @author: wushenghong
 * @date: 2020-04-16
 * @description:客户档案Action
 * @modify:
 */
public class PmArchivesCustomerControllerAuto extends PmController<PmArchivesCustomerEntity, IPmArchivesCustomerService> {


	
	/**
	 * @author: wushenghong
	 * @date: 2020-04-16
	 * @return_type: void
	 * @description:加载编辑编码的列表
	 * @modify:
	 */	
	@GetMapping(value = "/dataCodeList")
	public ResponseResult<Object> dataCodeList(@RequestParam(required = false) Map<String, Object> paraMap) {
		List<Map<String, Object>> enabledList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		List<Map<String, Object>> categorylist = datacodeCache.getCodeListMap("PmCustomerCategory","","sortcode");
		Map<String, Object> codeMap = new HashMap<String, Object>();
		codeMap.put("enabledList", enabledList);
		codeMap.put("categorylist", categorylist);
		return ResponseResult.ok(codeMap);
	}

}

